Contents | Index | < Browse | Browse >

LETTERvprintfULETTER Prints formatted data of a varying-length argument list to stdout.

Overview
#include <stdio.h>
r = vprintf(format,vl);

int r;
const char *format;
va_list vl;

Portability
ANSI

Description
Prints formatted data to stdout. The output format template describing the format of the output must be followed by the argument list "vl".

Before usage "vl" must be initialized using va_start. After using you must finish using it using va_end.

Returns
The number of characters written or a negative value if an error occured.

See also
vfprintf , vsprintf , printf